package com.zed.game.answer.fetures;

import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Zed
 */
public interface AnswerShowWorldBaseMapper extends BaseMapper<AnswerShowWorldEntity> {


    @Select("select * from answer_show_world ORDER BY RAND() LIMIT #{hopeSize}")
    List<AnswerShowWorldEntity> getRandom(@Param("hopeSize") long hopeSize );
}
